import json


def load_config(file: str):
    with open(file, 'r') as f:
        config = json.load(f)
    return config


def assertion_equal(actual, expect, case_description='用例', success_msg='成功', fail_msg='失败'):
    if actual == expect:
        return case_description + '--' + success_msg
    else:
        return case_description + '--' + fail_msg

